package com.hema.auction.utils;

/**
 * author by john
 */
public class Constant {

    public static final String API_HOST;
    public static final String H5_TURNTABLE;//转盘
    public static final String WECHAT_APP_ID = "wx3c701ecf600c0829"; //微信appid
    public static final String WECHAT_SECRET = "093d0eb7c608c95484b9435ef6983111"; //wechat secret
    public static final String QQ_APP_ID = "1106300579"; //QQ appid
    public static final String QQ_SECRET = "iKO0SXmatlFX4U9w"; //QQ secret
    public static final String SCOPE = "";
    public static final String TRACKING_KEY = "1c01bdc47e80dabbb5827a7069823a02";//热云appkey


    static {
//        if (BuildConfig.API_DEBUG) {
//            API_HOST = "http://shanpai.51cnb.xin";
//            H5_TURNTABLE = "http://game.51cnb.cn/";
//        } else {
//            API_HOST = "http://app.sdjpai.cn";
//            H5_TURNTABLE = "http://game.sdjpai.cn/";
//        }
        API_HOST = "http://app.sdjpai.cn";
        H5_TURNTABLE = "http://game.sdjpai.cn/";
    }


    public final static String EXTRA_TAB_INDEX = "extra_tab_index";
    public final static String EXTRA_MESSAGE_INFO = "extra_message_info";
    public final static String EXTRA_SUN_INFO = "extra_sun_info";
    public final static String EXTRA_PHONE = "extra_phone";
    public final static String EXTRA_POSITION = "extra_position";
    public final static String EXTRA_GOOD_INFO = "extra_good_info";
    public final static String EXTRA_GOOD_ID = "extra_good_id";
    public final static String EXTRA_ORDER_ID = "extra_order_id";
    public final static String EXTRA_ORDER_INFO = "extra_order_info";
    public final static String EXTRA_STATUS = "extra_status";
    public final static String EXTRA_MY_SUN = "extra_my_sun";
    public final static String EXTRA_ADDRESS_INFO = "extra_address_info";
    public final static String EXTRA_TITLE = "extra_title";
    public final static String EXTRA_URL = "extra_url";
    public final static String EXTRA_GUIDE = "extra_guide";
    public final static String EXTRA_AD = "extra_ad";
    public final static String EXTRA_CJ_BUY = "extra_cj_buy";
    public final static String EXTRA_CJ_BUY_PAY = "extra_cj_buy_pay";
    public final static String EXTRA_NEW_USER = "extra_new_user";
    public final static String EXTRA_ORDER_SN = "extra_trans_id";
    public final static String EXTRA_TYPE = "extra_type";

    public final static int REQUEST_CODE_PERMISS_CALL_PHONE = 0X00; //请求电话权限
    public static final int REQUEST_CODE_PERMISS_CEMERA = REQUEST_CODE_PERMISS_CALL_PHONE + 1;//申请拍照权限
    public static final int REQUEST_CODE_TAKE_PHOTO = REQUEST_CODE_PERMISS_CEMERA + 1; //拍照
    public static final int REQUEST_CODE_SELECT_PICTURE = REQUEST_CODE_TAKE_PHOTO + 1;//选择照片
    public static final int REQUEST_CODE_HANDLE_PHOTO = REQUEST_CODE_SELECT_PICTURE + 1; //裁剪照片
    public static final int REQUEST_CODE_PERMISS_WRITE_EXTERNAL_STORAGE = REQUEST_CODE_HANDLE_PHOTO + 1; //文件写入权限
    public static final int REQUEST_CODE_PERMISS_LOCATION = REQUEST_CODE_PERMISS_WRITE_EXTERNAL_STORAGE + 1; //定位权限
    public static final int REQUEST_CODE_ADDRESS = REQUEST_CODE_PERMISS_LOCATION + 1; //选择收货地址
    public static final int REQUEST_CODE_PAY = REQUEST_CODE_ADDRESS + 1; //支付成功

    /**
     * 图片格式
     */
    public static final String IMAGE_UNSPECIFIED = "image/*";
    public static final String IMAGE_TEMP_NAME = "temp.jpg";
    /**
     * 拍照存放目录
     */
    public static final String PHOTO_DIR = "/photo";
    public static String tempPicture;
    public static String TEMP_CODE = "";


    public final static int HTTP_TYPE_ONRESPONSE = 0;
    public final static int HTTP_TYPE_ONFAILEURE = -1;
    public final static int HTTP_TYPE_ONFINISH = 1;
    public final static int MESSAGE_DEFAUL = 2;

    public final static String CACHE_KEY_PROFILE = "key_profile";
    public final static String CACHE_INDEX_BANNER = "key_index_banner";
    public final static String CACHE_NEW_GUIDE_PIC = "key_new_guide_pic";
    public final static String CACHE_TEN_AREA = "key_ten_area";
    public final static int PAGE_SIZE = 20;


    /**
     * appid		-- 应用appid
     * privateKey   -- 应用私钥
     * publicKey	-- 平台公钥(platKey)
     * */


    /**demo*/
//    public static final String appid = "3001259821";
//    public static final String privateKey = "MIICXgIBAAKBgQCOqWFTCsTglunf036QBof9EnKo4g6EaZ+IYa+u3jMf3p4YeHmOZjvE8jTxJ+tLvVfroRJNIRQX81uJKhTbtfkBxQjOiC8y9pyfQXz02WTl6DFIM9Kgjjx51bGnEKP8ploW2ieqKCDBzYCwkVEQfr7ayOPx0WWD0Cw3J6nb3EDUKQIDAQABAoGBAI440BzQdJuN99Q67Ua6LCIgnQw+aMia3/8/m7xSKleQQL4WhOBwjQ93g04TROC5/4eZiTw5SOXjp5Kj0C2FSZp5lmIggAg/KRgFhcdQ28jxmGzBD9+2cshTucYoa7YxtaeuljODT21nh7m5XF9HEngU7Ty8nnW8Byumpxa5bYCBAkEA1d3sSsjR7Y5wV6a9VgZsOKvExoCeUSjSaC6/KAZmJHExZB2Mb4yh+3LSV4Pi9xnz4umk/JFWRMJ7oQs7JsOVUQJBAKrEUf9Dbtm1qzvUy474e83N6+3iUsX8p5giRSahaOSsl7jCnnwqwF8nhh2I40XliH106nC4YV2c3f7cS8BEe1kCQQCY319OPapBgrWvEdL5MPIeuDmaIsoH/YQZUID3nUtZ9Ud25uBBxGbtFDBiujV8qCJ7KsPyffkKgXJZtWt81AVhAkEAnoiHvz0xKfiYMYGKQP66oQOtJjlYsumuBXS7UfPDV5hLeoFjdM6TrUMaJU0yAW/oWOAzzdW+vpOlHLgTszlgcQJAPSHsnZBSlKPJUHt3D7tGedgi6f8ayrbqxlsbvMQEFVzgUr0x1OV4ni+5oZOsP6jfoRLeWbiS8GMZlp2t326fgA==";
//    public static final String publicKey="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPJmrO2n5qNNfiXM1hAUJlcOL95J2MZ8FJI9HYmD+GuFn9K75KFNEjdc3ZaRRmjSW6GA1ZLJ2Ddgf8XWjXZ5g1sO5y6zQWrq9OZpk6plKjAKF8LEfJyS7zClOG/ziUNj164GShMWOTmJ0xdLX6wTG/QYQ4DLu43gi1Y+RZbwkSGQIDAQAB";
    /**
     * 线上环境
     */
    public static final String appid = "3014273962";
    public static final String privateKey = "MIICXAIBAAKBgQCtaZdQBqNnyVogEK8FQzu3Jqjrc3CxFO6HpnQfzPjz6wWD+DItV+fjNRDj8d4NRImhWfoNv4Eu82kzRyEu4r6xsadlY2KIPTsBXNPMLQwtwohXFZ6LvA1AwrnkgwlBFtsbd9dn+vpZ3O8Kib4P5qNCy4j35QUZ+tjpQ0PijDb2OwIDAQABAoGAU67i8CFj9Y+7SEIE09tQE+A6H/VDapEZUqjG3RnDAaJmtPqu7CbBpmlTT0zGxUxPxmdvPfcuVgPsvmwS3VdaggTdLmFIPNydc13a6YR0wwpsgT4nq7KnYXM0rnruhqiy3iFTuvV91+vIHzEwNRUTibpCxTkamBtJfs6MbxwhhrECQQDtGS0BHOOFS1YxkxwMuQ7IbwzyzYT7aaTeE3l2thqr2qrsNrLhw8+/3gHHONASB+OOY5D932ftlviNnoZWp4F/AkEAuzyuamkEBHnstWB00GmYf/BNHAadJcv3wx8Dnk+bolccJkSrYASmLCePzLVYZTQ1NpoEXDaBnVhDsfHbYxhxRQJAeFPKj0IGBePR/p7WIW7ZncceHytGTgGzdjET97c7mfQDwpWP+xvRF2KoLF8c2cm/JshJEU6MA/wWcGj/bILeKQJBAKqsHqS6w0G9TgrrOK/9gVgl2HQSh067xUXkUG0PTePGGc+8SqcEteCL02WbbE8cLuFttUnFGZMusM5Uk1GaJy0CQGAIcuBIELkr6hw8wNUtiQambFc9Ir/ZsyewrhpQypQ6HqcOB8kR4DwclAckzRA6tIkT2uNNAM7c3ozlEBRbFkI=";
    public static final String publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCkB+L1dC1QtieIBNrqZSlb2Y7ErN/9Gw0EKGFIK2RkrSDed58wsh4TINNuCWuj9Lv8KQcSiiuQbWnr2cemjrwUwbC/QmhwvW0d3JW8KcvHXrD6xmFiRwKgHZ5PAqGUDEEOwdiQyzPtNszzpPiR8iUy7tjFcUNFQdKh0ozPISGz3QIDAQAB";


}
